package com.lynx.mapper.cb;

import com.lynx.mapper.cb.model.UserPO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author chris.liu
 * @version 4/17/14 11:12 PM
 */
@Repository("accountMapper")
public interface AccountMapper {

    UserPO getUserById(@Param("id") int id);

	UserPO getUserByNameAndPwd(@Param("name") String name, @Param("pwd") String pwd);

	UserPO getUserByEmailAndPwd(@Param("email") String email, @Param("pwd") String pwd);

	void updateUserInfo(UserPO user);
}
